package com.whj.wkpt.entity;

import java.time.LocalDateTime;

public class DeliveryAttachment {
    private Long attachmentId;
    private Long applicationId;
    private String fileName;
    private String filePath;
    private Long fileSize;
    private LocalDateTime uploadTime;

    // Constructors
    public DeliveryAttachment() {}

    public DeliveryAttachment(Long applicationId, String fileName, String filePath, Long fileSize) {
        this.applicationId = applicationId;
        this.fileName = fileName;
        this.filePath = filePath;
        this.fileSize = fileSize;
    }

    // Getters and Setters
    public Long getAttachmentId() {
        return attachmentId;
    }

    public void setAttachmentId(Long attachmentId) {
        this.attachmentId = attachmentId;
    }

    public Long getApplicationId() {
        return applicationId;
    }

    public void setApplicationId(Long applicationId) {
        this.applicationId = applicationId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public LocalDateTime getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(LocalDateTime uploadTime) {
        this.uploadTime = uploadTime;
    }

    @Override
    public String toString() {
        return "DeliveryAttachment{" +
                "attachmentId=" + attachmentId +
                ", applicationId=" + applicationId +
                ", fileName='" + fileName + '\'' +
                ", filePath='" + filePath + '\'' +
                ", fileSize=" + fileSize +
                ", uploadTime=" + uploadTime +
                '}';
    }
}